/**
 * Created by chenhm on 11/04/2017.
 */
const fs = require('fs'),
    getSqlMap = require('./get-sql-map');

let sqlContentMap = {};

function getSqlContent(fileName, path) {
    let content = fs.readFileSync(path, 'binary');
    sqlContentMap[fileName] = content;
}

function getSqlContentMap() {
    let sqlMap = getSqlMap();
    for(let key in sqlMap){
        getSqlContent(key, sqlMap[key]);
    }

    return sqlContentMap;
}

module.exports = getSqlContentMap;